package homework15;

public class AbValue {
		int num;
		
		public int absolute(int num) {
			if(num < 0) {
				return -num;
			}
			else {
				return num;
			}
		}
		public float absolute(float num) {
			if(num < 0) {
				return -num;
			}
			else {
				return num;
			}
		}
		public double absolute(double num) {
			if(num < 0) {
				return -num;
			}
			else {
				return num;
			}
		}
}
